import Layout from '@/views/layout/Layout'
import NoPage from '@/views/layout/404'
import Jianshu from '@/views/document/jianshu/index'
// 文档说明路由 只在开发环境有效 不会编译进正式环境
export default [
  {
    path: 'example',
    component: Layout,
    meta: { title: '示例模版', icon: 'el-icon-document' },
    children: [
      {
        path: 'table',
        component: () => import('@/views/document/example/base_table/index'),
        meta: { title: '基础表格信息页', icon: '' }
      },
      {
        path: 'card_table',
        component: () => import('@/views/document/example/card_table/index'),
        meta: { title: 'Card表格信息页', icon: '' }
      },
      {
        path: 'tab_table',
        component: () => import('@/views/document/example/tab_table/index'),
        meta: { title: 'TAB表格信息页', icon: '' }
      },
      {
        path: 'form',
        component: () => import('@/views/document/example/base_form/index'),
        meta: { title: '表单页', icon: '' }
      },
      {
        path: 'dialog',
        component: () => import('@/views/document/example/dialog/index'),
        meta: { title: '对话框页', icon: '' }
      },
      {
        path: 'info',
        component: () => import('@/views/document/example/info/index'),
        meta: { title: '详情展示页', icon: '' }
      },
      {
        path: 'card',
        component: NoPage,
        meta: { title: '卡片信息展示', icon: '' }
      }
    ]
  },
  {
    path: 'server_specification',
    component: Layout,
    meta: { title: '服务端说明', icon: 'el-icon-news' },
    children: [
      {
        path: 'server_interface',
        component: Jianshu,
        meta: { title: '接口规范', noCache: true, id: '4f14a57a3638' }
      },
      {
        path: 'server_interface_impl',
        component: Jianshu,
        meta: { title: '接口实现', noCache: true, id: '2d486deb6bb5' }
      }
    ]
  },
  {
    path: 'front_specification',
    component: Layout,
    meta: { title: '前端文档', icon: 'el-icon-tickets' },
    children: [
      {
        path: 'must_read',
        component: Jianshu,
        meta: { title: '新手必读', noCache: true, id: '65900cf20619' }
      },
      {
        path: 'coding',
        component: Jianshu,
        meta: { title: '编码规范', noCache: true, id: 'd1ad0dd82bc1' }
      },
      {
        path: 'question',
        component: Jianshu,
        meta: { title: '疑难问题', noCache: true, id: '7527276b504f' }
      }
    ]
  }

]
